FROM amazoncorretto:8

#时区
ENV TZ=Asia/Shanghai
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

#准备
WORKDIR /app
COPY *.jar run.sh /app/
COPY --chmod=a+x wait-for-it.sh /usr/bin/
RUN chmod +x /app/run.sh

#执行
EXPOSE 38080
ENTRYPOINT ["./run.sh"]